/*
 * Taken from :
 * http://www.wiredprairie.us/journal/2006/10/how_to_know_when_your_animatio.html
 * 
 * Add TargetElement property to DoubleAnimation, just to know the animation target.
 * */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Animation;
using System.Windows;

namespace UmlControlLibrary
{
    public class DoubleAnimationPlus : DoubleAnimation
    {
        private UIElement _target;

        public UIElement TargetElement
        {
            get { return _target; }
            set { _target = value; }
        }

        protected override Freezable CreateInstanceCore()
        {
            DoubleAnimationPlus p = new DoubleAnimationPlus();
            p.TargetElement = this.TargetElement;
            return p;
        }
    }
}
